<?php

namespace app\api\model\event;
use app\api\model\BaseModel;
use LinCmsTp5\admin\model\LinUser;

class Video extends BaseModel
{
    protected $table = 'cps_video';
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';

    public function name(){
        return $this->hasOne(LinUser::class,'id','uid')->field('id,username');
    }

}
